package com.ihelp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.github.yulichang.annotation.EntityMapping;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * <p>
 *
 * </p>
 *
 * @author LiuZiMing
 * @since 2023-05-23
 */
@Data
@ToString
//Elasticsearch
@Document(indexName = "request")
//Mybatis-plus
@TableName("tbl_request")
public class Request implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //           可否分词            是否创建索引        分词器类型
    @Field(type = FieldType.Text, index = true, analyzer = "ik_max_word")
    @TableField("visitor_id")
    private Integer visitorId;

    @TableField("area_id")
    private Integer areaId;

    @TableField("hospital_id")
    private Integer hospitalId;

    @TableField("hospital_department_id")
    private Integer hospitalDepartmentId;

    @TableField("visit_time")
    private String visitTime;

    @TableField("price")
    private Double price;

    @TableField("describes")
    private String describes;

    @TableField("service_type_id")
    private Integer serviceTypeId;

    @TableField("duration")
    private Double duration;

    @TableField("status_id")
    private Integer statusId;


}
